<tr>
  <td>
    <div><%= channel.name %></div>
    <div class="small text-muted">
      <%= formattime(channel.created_at, unit: "day") %>
    </div>
  </td>
  <td class="text-center">
    <div class="avatar d-block" style="background-image: url(<%= channel.avatar.url %>)">
      <span class="avatar-status bg-green"></span>
    </div>
  </td>
  <td>
    <div><%= channel.page_type %></div>
  </td>
  <td>
    <div><%= channel.sort %></div>
  </td>
  <td>
    <div><%= channel.published ? "显示" : "隐藏" %></div>
  </td>
  <td class="text-center">
    <div class="item-action dropdown">
      <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
      <div class="dropdown-menu dropdown-menu-right">
        <a href="<%= edit_admin_channel_path(channel) %>" class="dropdown-item"><i class="dropdown-icon fe fe-tag"></i> 修改 </a>
        <%= link_to admin_channel_path(channel), method: :delete, class: 'dropdown-item' do %>
          <i class="dropdown-icon fe fe-edit-2"></i> 删除 
        <% end %>
      </div>
    </div>
  </td>
</tr>
